/**
 * Copyright (c) 2013-2022 Nikita Koksharov
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *    http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package org.redisson.api;

import org.redisson.RedissonNode;

/**
 * RedissonNodeInitializer 接口定义了节点启动时的初始化行为。
 * 该接口包含一个方法，用于在Redisson节点启动时执行特定操作。
 */
public interface RedissonNodeInitializer {

    /**
     * 当Redisson节点启动时调用此方法。可以用于执行节点初始化所需的任何操作。
     *
     * @param redissonNode Redisson节点对象，提供了与Redis服务器交互的功能。
     *                     通过此参数，初始化逻辑可以访问并操作Redisson节点。
     */
    void onStartup(RedissonNode redissonNode);
}

